package com.dfbz.bigdata.modules.system.shop.order.doman;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表
 * @TableName tb_uandub_orders
 */
@TableName(value ="tb_uandub_orders")
@Data
public class UandubOrders implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long uubOdId;

    /**
     * 订单号
     */
    private String uubOdNum;

    /**
     * 下单用户
     */
    private Long userId;

    /**
     * 商家id
     */
    private Long uubOdBusinessId;

    /**
     * 下单时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date uubOdCreatetime;

    /**
     * 结账时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date uubOdCheckouttime;

    /**
     * 物流id
     */
    private Long uubExpressId;

    /**
     * 下单物品的id  
     */
    private Long goodId;

    /**
     * 地址
     */
    private String uubOdAddress;

    /**
     * 实付价格
     */
    private BigDecimal uubOdActualprice;

    /**
     * 保险id
     */
    private Long safeId;

    /**
     * 创建时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTime;

    /**
     * 创建人
     */
    private Long createUser;

    /**
     * 修改人
     */
    private Long updateUser;

    /**
     * 是否删除
     */
    @TableLogic(value = "0",delval = "1")
    private Integer isDeleted;





    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UandubOrders other = (UandubOrders) that;
        return (this.getUubOdId() == null ? other.getUubOdId() == null : this.getUubOdId().equals(other.getUubOdId()))
            && (this.getUubOdNum() == null ? other.getUubOdNum() == null : this.getUubOdNum().equals(other.getUubOdNum()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getUubOdBusinessId() == null ? other.getUubOdBusinessId() == null : this.getUubOdBusinessId().equals(other.getUubOdBusinessId()))
            && (this.getUubOdCreatetime() == null ? other.getUubOdCreatetime() == null : this.getUubOdCreatetime().equals(other.getUubOdCreatetime()))
            && (this.getUubOdCheckouttime() == null ? other.getUubOdCheckouttime() == null : this.getUubOdCheckouttime().equals(other.getUubOdCheckouttime()))
            && (this.getUubExpressId() == null ? other.getUubExpressId() == null : this.getUubExpressId().equals(other.getUubExpressId()))
            && (this.getGoodId() == null ? other.getGoodId() == null : this.getGoodId().equals(other.getGoodId()))
            && (this.getUubOdAddress() == null ? other.getUubOdAddress() == null : this.getUubOdAddress().equals(other.getUubOdAddress()))
            && (this.getUubOdActualprice() == null ? other.getUubOdActualprice() == null : this.getUubOdActualprice().equals(other.getUubOdActualprice()))
            && (this.getSafeId() == null ? other.getSafeId() == null : this.getSafeId().equals(other.getSafeId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUubOdId() == null) ? 0 : getUubOdId().hashCode());
        result = prime * result + ((getUubOdNum() == null) ? 0 : getUubOdNum().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getUubOdBusinessId() == null) ? 0 : getUubOdBusinessId().hashCode());
        result = prime * result + ((getUubOdCreatetime() == null) ? 0 : getUubOdCreatetime().hashCode());
        result = prime * result + ((getUubOdCheckouttime() == null) ? 0 : getUubOdCheckouttime().hashCode());
        result = prime * result + ((getUubExpressId() == null) ? 0 : getUubExpressId().hashCode());
        result = prime * result + ((getGoodId() == null) ? 0 : getGoodId().hashCode());
        result = prime * result + ((getUubOdAddress() == null) ? 0 : getUubOdAddress().hashCode());
        result = prime * result + ((getUubOdActualprice() == null) ? 0 : getUubOdActualprice().hashCode());
        result = prime * result + ((getSafeId() == null) ? 0 : getSafeId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uubOdId=").append(uubOdId);
        sb.append(", uubOdNum=").append(uubOdNum);
        sb.append(", userId=").append(userId);
        sb.append(", uubOdBusinessId=").append(uubOdBusinessId);
        sb.append(", uubOdCreatetime=").append(uubOdCreatetime);
        sb.append(", uubOdCheckouttime=").append(uubOdCheckouttime);
        sb.append(", uubExpressId=").append(uubExpressId);
        sb.append(", goodId=").append(goodId);
        sb.append(", uubOdAddress=").append(uubOdAddress);
        sb.append(", uubOdActualprice=").append(uubOdActualprice);
        sb.append(", safeId=").append(safeId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", createUser=").append(createUser);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}